//配置结构
const { Schema, model } = require('mongoose');
//创建结构对象
console.log('schema1');
const teste1Schema = new Schema({
    score: String,
    test_id: {
        type: Schema.Types.ObjectId,
        ref: 'testsModel'
    },
    user_id: {
        type: Schema.Types.ObjectId,
        ref: 'studentsModel'
    },
}, { versionKey: false });

//设置数据模型
const testedModel = model('testedModel', teste1Schema, 'completedTest')

module.exports = {
    testedModel
}